package thread;

public class ThreadEx1 extends Thread{
	private int num;
	public void run(){
		while(num<50){
			System.out.println(Thread.currentThread().getName()+":"+num++);
		}
	}
}
